package com.yunfei.bo.prodActiInfo;
import com.yunfei.entity.prodActiInfo.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename PROD_ACTI_INFO
*@author zhengyunfei
*@createDate Mon Jan 21 16:25:11 CST 2019
*/ 
public class ProdActiInfoBo implements java.io.Serializable{
	private String projId;
	private String chickCnt;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		int value=(curNo-1)*curSize;
		return value;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setProjId(String projId){
		this.projId=projId;
	}
	public String getProjId(){
		return projId;
	}
	public void setChickCnt(String chickCnt){
		this.chickCnt=chickCnt;
	}
	public String getChickCnt(){
		return chickCnt;
	}
	public static ProdActiInfoEntity boToEntity(ProdActiInfoBo bo){
		ProdActiInfoEntity entity=new ProdActiInfoEntity();
		entity.setProjId(bo.getProjId());
		entity.setChickCnt(bo.getChickCnt());
		return entity;
	}
	public static ProdActiInfoBo entityToBo(ProdActiInfoEntity bo){
		ProdActiInfoBo entity=new ProdActiInfoBo();
		entity.setProjId(bo.getProjId());
		entity.setChickCnt(bo.getChickCnt());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("projId")){
					result="PROJ_ID";
				}
				if(field.equals("chickCnt")){
					result="CHICK_CNT";
				}
		}
		return result;
	}
}

